package com.my.blog.myblog.entity.random;

/***
 *
 * @Auther: MuYun
 * @Date: 2021/9/3 14:30
 * @Description：
 *
 */
public class change {
    public  void swap(int a,int b){
        int t;
        t=a;
        a=b;
        b=t;
        System.out.println(a);
        System.out.println(b);


    }

    public void test(){

        System.out.println("测试");

        swap(1,2);          //这个没有出错
    }

    public static void main(String[] args){
        int c1=13;
        int c2=88;

        //swap(c1,c2);              // change c=new change();c.test();
        //c.swap(c1,c2);
        //test();                  //c.test();
        System.out.println(c1);
        System.out.println(c2);
    }
}
